package com.demo.exce;

import java.util.Scanner;

/**
 * @Author WaveHi
 * @Date 24/7/2021 下午 4:47
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class IfElseIfElse {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        System.out.print("请输入在线天数；");
        int i1 = sc.nextInt();
        //先判断是否合法
        if(i1 > 0){
            //设计分支
            if(i1 > 32){
                System.out.println("moon");

            } else if(i1 > 21){
                System.out.println("star star star");

            } else if(i1 > 12){
                System.out.println("star star");
            } else if(i1 > 5){
                System.out.println("star");
            } else if(i1 > 0){
                System.out.println("ooo");
            } else{
                System.out.println("输入不合法！");
            }
        }

    }

}
